package com.wh.wisdomsite.xbox.st.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.wh.wisdomsite.xbox.st.entity.PurchaseDetail;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * 采购清单DAO
 * @version V1.0
 * @author: 杨世强
 * @Package com.wh.wisdomsite.xbox.st.dao
 * @date 2018-12-24 14:25
 * @Copyright 企业版权所有
 * @Company 贵州万华科技有限公司Copyright (c) 2018
 */
@Repository
public interface PurchaseDetailMapper extends BaseMapper<PurchaseDetail> {


    /**
     * 获取申请材料数量对比分页列表
     * @param var1
     * @param var2
     * @return
     */
    List<Map<String, Object>> getContrastPage(RowBounds var1, @Param("ew") Wrapper<PurchaseDetail> var2);




    /**
     * 获取采购
     * @param ew
     * @return
     */
    List<PurchaseDetail> getPurchaseDetails(@Param("ew") Wrapper<PurchaseDetail> ew);

    /**
     * 根据条件获取采购清单MAP，直接附带物料信息
     * @param ew
     * @return
     */
    List<Map<String,Object>> getPurchaseDetailMaps(@Param("ew") Wrapper<PurchaseDetail> ew);
}
